/**
 * 一些提示通知框
 * 使用view-design Notice
 */
const showUtil={};

import { ElNotification } from 'element-plus'



showUtil.showSuccess=function (msg,title) {
    ElNotification({
        title: title == null ? '成功' : title,
        message:msg,
        type: 'success',
    });
}


showUtil.showError=function (msg,title) {
    ElNotification({
        title: title == null ? '失败' : title,
        message:msg,
        type: 'error',
    });
}

showUtil.showWarring=function (msg,title) {
    ElNotification({
        title: title == null ? '警告' : title,
        message:msg,
        type: 'warning',
    });
}


export default showUtil;
